package com.elong.qadev.compiler;
 
import javax.tools.*;

import java.io.IOException;
/**
 * 
* @ClassName: ClassFileManager
* @Description: TODO(Gets a file object for output representing the specified class of the specified kind in the given location.)
* @author kangchen
* @date 2015年10月15日
*
 */
@SuppressWarnings("rawtypes")
public class ClassFileManager extends
        ForwardingJavaFileManager {
    public JavaClassObject getJavaClassObject() {
        return jclassObject;
    }
 
    private JavaClassObject jclassObject;
 
 
    @SuppressWarnings("unchecked")
	public ClassFileManager(StandardJavaFileManager
        standardManager) {
        super(standardManager);
    }
 
 
    @Override
    public JavaFileObject getJavaFileForOutput(Location location,
        String className, JavaFileObject.Kind kind, FileObject sibling)
            throws IOException {
            jclassObject = new JavaClassObject(className, kind);
        return jclassObject;
    }
}